export default {
    state: {
        category: [],
        banner: ['http://negative.oss-cn-hangzhou.aliyuncs.com/static/1903/27/0b5a013ddcc84f8cada4035f57a7d7d0.banner.jpg'],
        carousel: ['http://img61.ddimg.cn/upload_img/00087/geq/750x315_dl_0318-1552964951.jpg'],
        activeIndex: '0',
        shareList: [],
        intro: '',
        successList: []
    },
    getters: {

    },
    mutations: {
        setCategory(state, category) { // 设置导航菜单树
            state.category = category
        },
        setBanner(state, banner) { // banner图
            state.banner = banner
        },
        setCarousel(state, carousel) { // 走马灯
            state.carousel = carousel
        },
        setActiveIndex(state, activeIndex) { // 默认选中菜单
            state.activeIndex = activeIndex
        },
        setShareList(state, shareList) { // 默认显示分享内容
            state.shareList = shareList
        },
        setIntro(state, intro) { // 默认显示简介
            state.intro = intro
        },
        setSuccessList(state, successList) { // 默认显示成功案例
            state.successList = successList
        }
    },
    actions: {

    }
}
